<?php 
/* WPU Option: */
global $tadosubhead; if ($tadosubhead == 1) {
	
/* Page numbering */ $ppaged = ""; 
	if (isset($_GET['paged']) && !empty($_GET['paged'])) { 
		$ppaged = " <span class='pagenum'>(Page: ".$_GET['paged']. ")</span>"; 

} ?>

<?php if (is_home()) { ?>

<div id="subhead" class="is_home">
<h4><span><?php bloginfo('sitename'); ?></span></h4>
</div>

<?php } elseif (is_page()) { ?>

<div id="subhead" class="ispage">
<h4><span>Page Header</span></h4>
</div>

<?php } elseif (is_search()) { ?>

<div id="subhead" class="is_search">
<h4><span>Search Results</span></h4>
</div>


<?php } elseif (is_author()) { 
	if(get_query_var('author_name')) :
		$curauth = get_userdatabylogin(get_query_var('author_name'));
	else :
		$curauth = get_userdata(get_query_var('author'));
	endif;
		$current_author = $curauth->nickname; 
?>

<div id="subhead" class="is_author">
<h4><span>Archive for <?php echo $current_author ?>'s post <?php echo $ppaged; ?></span></h4>
</div>

<?php } elseif (is_category()) {  ?>

<div id="subhead" class="is_category">
<h4><span>Archive for the '<?php echo single_cat_title(); ?>' Category <?php echo $ppaged; ?></span></h4>
</div>
	
<?php } elseif (is_archive()) { 

		$post = $posts[0]; // Hack. Set $post so that the_date() works.
		if (is_day())       { $currently = get_the_time('F jS, Y');  }
		elseif (is_month()) { $currently = get_the_time('F, Y'); }
		elseif (is_year())  { $currently = get_the_time('Y'); } 
?>

<div id="subhead" class="isarchive">
<h4><span>Archive for <?php echo $currently ?> <?php echo $ppaged; ?></span></h4>
</div>

<?php } else { ?>

<div id="subhead">
<h4><span><?php bloginfo('name'); ?> <?php echo $ppaged; ?></span></h4>
</div>

<?php } } ?>